Programming
11.1 Programming Basics
Candidates should be able to:
- Implement and write pseudocode from a given design presented as either a program flowchart or structured English
- Write pseudocode statements for:
- the declaration and initialisation of constants
- the declaration of variables
- the assignment of values to variables
- expressions involving any of the arithmetic or logical operators input from the keyboard and output to the console
- Use built-in functions and library routines
Notes and guidance
- Any functions not given in the pseudocode guide will be provided
- String manipulation functions will always be given
11.2 Constructs
Candidates should be able to:
- Use pseudocode to write:
- an ‘IF’ statement including the ‘ELSE’ clause and nested IF statements
- a ‘CASE’ structure
- a ‘count-controlled’ loop:
- a ‘post-condition’ loop
- a ‘pre-condition’ loop
- Justify why one loop structure may be better suited to solve a problem than the others
11.3 Structured Programming
Candidates should be able to:
- Define and use a procedure
- Explain where in the construction of an algorithm it would be appropriate to use a procedure
- Use parameters
Notes and guidance
- A procedure may have none, one or more parameters
- A parameter can be passed by reference or by value
- Define and use a function
- Explain where in the construction of an algorithm it is appropriate to use a function
Notes and guidance
A function is used in an expression, e.g. the return value replaces the call
- Use the terminology associated with procedures and functions
Notes and guidance
including procedure / function header, procedure / function interface, parameter, argument, return value
- Write efficient pseudocode